package fr.cephb.joperon.webapp.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;


public abstract class AbstractSnpSeqTag  extends AbstractEmptyTag
	{
	private static final long serialVersionUID = 1L;

	/***
	 * AbstractSnpSeqTag
	 */
	protected AbstractSnpSeqTag()
		{
		
		}
	

	private String name=null;
	private String left=null;
	private String right=null;
	private String A1=null;
	private String A2=null;
	

	
	public int doStartTag() throws JspException
		{
		return SKIP_BODY;
		}
	

	public void setName(String name) {
		this.name = name;
	}

	public void setLeft(String left) {
		this.left = left;
	}

	public void setRight(String right) {
		this.right = right;
	}

	public void setA1(String a1) {
		A1 = a1;
	}

	public void setA2(String a2) {
		A2 = a2;
	}
	
	public String getName() {
		return name;
	}
	public String getA1() {
		return A1;
	}
	public String getA2() {
		return A2;
	}
	public String getLeft() {
		return left;
	}
	public String getRight() {
		return right;
	}

	@Override
	public void release() {
		  name=null;
		  left=null;
		  right=null;
		  A1=null;
		  A2=null;
		}
	@Override
	public void  print(JspWriter out) throws IOException
		{
		if(getName()==null || getA1()==null || getA2()==null || getLeft()==null || getRight()==null) return;
		printSequence(out);
		}
	
	public abstract void  printSequence(JspWriter out) throws IOException;
	}
